package com.itany.shop.service;


import com.itany.shop.entity.User;
import com.itany.shop.exception.ServiceException;
import com.itany.shop.exception.ShopException;

/**
 * Description: 类的描述
 * Author: liudaolin@itany.com
 * Date: 2021/07/15 09:00
 * Version: 1.0 版本信息
 */
public interface UserService {
    /**
     * 注册
     *
     * @param user
     * @param rePwd
     * @throws ShopException 用户名重复时可能抛出此异常
     */
    void register(User user, String rePwd) throws ShopException, ServiceException;

    /**
     * @param user
     * @throws ShopException
     * @throws ServiceException
     */
    void login(User user) throws ShopException, ServiceException;
}
